package com.yt.system.service;

import com.yt.system.domain.*;

import java.util.Date;
import java.util.List;

/**
 * @author Clqv
 * @create 2019--09--18 15:59
 */
public interface ActiveService {

    public Activity getActiveBykey(Integer actid);

    public Integer joinActiveForOne(Integer aid, Integer actid);

    public Integer joinActiveForGroup(Integer aid, Integer actid);

    public Integer takeoutActiveForOne(Integer aid, Integer actid);

    public Integer takeoutActiveForGroup(Integer aid, Integer actid);

    public List<AccountActivity> getActiveByaid(Integer aid);

    public List<Activity> getActives();

    public List<Activity> getActivesNoStart();

    public List<Activity> getActivesStarted();

    public List<Activity> getActivesforEnd();

    //查看个人活动参加信息
    public List<AccountActivity> getAccountActivitysByActid(Integer actid);

    public List<AccountActivity> getAccountActivitysByActidForgroup(Integer actid);

    public Integer pushActiveTime(Integer actid, Date startTime,Date endTime);

    public Integer publishActive(Activity activity);

    public Integer updateActive(Activity activity);

    public Integer deleteActive(Integer actid);

    public Integer updateForceJoin(Integer actid, Integer flag);

    public List<Activitytype> getActiveTypes();

    public Integer addActiveType(Activitytype activitytype);

    public Integer updateActiveType(Activitytype activitytype);

    public Integer deleteActiveType(Integer acid);

    public Integer startVote(Integer actid);

    public List<Vote> getVotes(Integer actid);

    public List<Vote> getVotesBefore(Integer actid);

    public Integer Voted(Integer actid, Integer aid, Integer vid);

    public Integer finishVote(Integer actid);

    List<Activity> searchActiveByName(String keywords);
}
